package com.ly.heart.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.WarehouseEntity;
import com.ly.heart.domain.dto.WarehouseDto;
import com.ly.heart.domain.vo.WarehouseVo;

/**
 * 仓库Service接口
 *
 * @author cxl
 * @date 2024-05-14
 */
public interface IWarehouseService extends IService<WarehouseEntity>
{
    /**
     * 查询仓库
     *
     * @param id 仓库主键
     * @return 仓库
     */
    public WarehouseEntity selectWarehouseEntityById(String id);

    /**
     * 查询仓库列表
     *
     * @param warehouseEntity 仓库
     * @return 仓库集合
     */
    public List<WarehouseVo> selectWarehouseEntityList(WarehouseEntity warehouseEntity);

    Integer queryCount(WarehouseEntity warehouseEntity);

    IPage<WarehouseVo> selectWarehouseEntityListCopy(WarehouseDto warehouseEntity);

    /**
     * 新增仓库
     *
     * @param warehouseEntity 仓库
     * @return 结果
     */
   AjaxResult insertWarehouseEntity(WarehouseEntity warehouseEntity);

    /**
     * 修改仓库
     *
     * @param warehouseEntity 仓库
     * @return 结果
     */
    AjaxResult updateWarehouseEntity(WarehouseEntity warehouseEntity);

    /**
     * 批量删除仓库
     *
     * @param ids 需要删除的仓库主键集合
     * @return 结果
     */
    AjaxResult deleteWarehouseEntityByIds(String[] ids);


    /**
     * 禁用仓库
     * @param id
     * @return
     */
    AjaxResult disable(String id);


    /**
     * 查询仓库关键词全量查询
     * @param warehouse
     * @return
     */
    public IPage<WarehouseVo> selectNewWarehouseListCopy(WarehouseDto warehouse);

    /**
     * 删除仓库信息
     *
     * @param id 仓库主键
     * @return 结果
     */
    public int deleteWarehouseEntityById(String id);

}
